package com.wen.yygh.hosp.service;

import com.wen.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;
import com.wen.yygh.model.hosp.Department;
import com.wen.yygh.vo.hosp.DepartmentQueryVo;

import java.util.List;
import java.util.Map;

/**
 * @author Wenjl
 */
public interface DepartmentService {
    /**
     * 新增科室信息
     *
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);

    /**
     * 查询科室信息
     *
     * @param pageNum
     * @param pageSize
     * @param departmentQueryVo
     * @return
     */
    Page<Department> findPageDepartment(Integer pageNum, Integer pageSize, DepartmentQueryVo departmentQueryVo);

    /**
     * 删除科室信息
     *
     * @param hoscode
     * @param depcode
     */
    void remove(String hoscode,String depcode);

    List<DepartmentVo> getDepartmentListByHoscode(String hoscode);

   String findDeptName(String depcode);


    Department getDepartment(String hoscode, String depcode);
}
